﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.Administrator>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AdminCreate
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Thêm Quản Lý Mới</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("AdminListBackend", "Admin") %>" class="button">Danh sách</a>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
        <% using (Html.BeginForm("AdminCreate", "Admin", FormMethod.Post)){%>
            <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
            <%= Html.ValidationSummary(true) %>
            <div class="display-label error">
                <div class="errorcontent">
                    <p><%= Html.ValidationMessage("NoticePage")%></p>
                    <p><%= Html.ValidationMessageFor(model => model.FullName) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Birthday) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.UserName) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Email) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Phone) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Address) %></p>
                </div>
            </div>
            <div>
                <div class="editor_left">
                    <label>Họ tên:</label><br />
                    <%= Html.TextBoxFor(model => model.FullName, new { maxlength = "100" })%>
                </div>
                <div class="editor_middle">
                    <div class="editor_fl">
                        <label>Giới tính:</label><br />
                        <%= Html.DropDownListFor(model => model.GenderID, ViewData["Gender"] as SelectList, new { @style="width:130px;"})%>
                    </div>
                    <div class="editor_fr">
                        <label>Ngày sinh:</label><br />
                        <%= Html.TextBoxFor(model => model.Birthday, new { maxlength = "10", @style="width:130px;" })%>
                    </div>
                </div>
                <div class="editor_right">
                    <label>Quyền truy cập:</label><br />
                    <%= Html.DropDownListFor(model => model.RoleID, ViewData["Role"] as SelectList, new { @style="width:300px;"})%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <div class="editor_left">
                    <label>Tên đăng nhập:</label><br />
                    <%= Html.TextBoxFor(model => model.UserName, new { maxlength = "20" })%>
                </div>
                <div class="editor_middle">
                    <label>Email:</label><br />
                    <%= Html.TextBoxFor(model => model.Email, new { maxlength = "100" })%>
                </div>
                <div class="editor_right">
                    <label>Điện thoại:</label><br />
                    <%= Html.TextBoxFor(model => model.Phone, new { maxlength = "20" })%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <label>Địa chỉ:</label><br />
                <%= Html.TextBoxFor(model => model.Address, new { maxlength = "250" })%>
            </div><br class="clear"/><br />
            <p>
                <input type="submit" value="Tạo mới" name="action" />
                <a href="<%= Url.Action("AdminCreate", "Admin") %>" class="buttonform">Làm lại</a>
            </p>
        <% } %>
        </div>
    </div>
</asp:Content>

